package com.fas.system.service.impl;

import com.fas.system.domain.FasEngineer;
import com.fas.system.mapper.FasEngineerMapper;
import com.fas.system.service.IFasEngineerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 工程师Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-04-27
 */
@Service
public class FasEngineerServiceImpl implements IFasEngineerService
{
    @Autowired
    private FasEngineerMapper fasEngineerMapper;

    /**
     * 查询工程师
     * 
     * @param id 工程师主键
     * @return 工程师
     */
    @Override
    public FasEngineer selectFasEngineerById(Long id)
    {
        return fasEngineerMapper.selectFasEngineerById(id);
    }

    /**
     * 查询工程师列表
     * 
     * @param fasEngineer 工程师
     * @return 工程师
     */
    @Override
    public List<FasEngineer> selectFasEngineerList(FasEngineer fasEngineer)
    {
        return fasEngineerMapper.selectFasEngineerList(fasEngineer);
    }

    /**
     * 新增工程师
     * 
     * @param fasEngineer 工程师
     * @return 结果
     */
    @Override
    public int insertFasEngineer(FasEngineer fasEngineer)
    {
        return fasEngineerMapper.insertFasEngineer(fasEngineer);
    }

    /**
     * 修改工程师
     * 
     * @param fasEngineer 工程师
     * @return 结果
     */
    @Override
    public int updateFasEngineer(FasEngineer fasEngineer)
    {
        return fasEngineerMapper.updateFasEngineer1(fasEngineer);
    }

    /**
     * 批量删除工程师
     * 
     * @param ids 需要删除的工程师主键
     * @return 结果
     */
    @Override
    public int deleteFasEngineerByIds(Long[] ids)
    {
        return fasEngineerMapper.deleteFasEngineerByIds(ids);
    }

    /**
     * 删除工程师信息
     * 
     * @param id 工程师主键
     * @return 结果
     */
    @Override
    public int deleteFasEngineerById(Long id)
    {
        return fasEngineerMapper.deleteFasEngineerById(id);
    }

    /**
     *  任意条件查询工程师列表
     * @param fasEngineer
     * @return
     */
    @Override
    public List<FasEngineer> selectFasEngineerListByAuto(FasEngineer fasEngineer) {
        return fasEngineerMapper.selectFasEngineerListByAuto(fasEngineer);
    }

    @Override
    public List<FasEngineer> selectFasEngineerlist1(FasEngineer fasEngineer) {

        return fasEngineerMapper.selectFasEngineerlist1(fasEngineer);
    }

    @Override
    public List<FasEngineer> selectFasEngineerlist2(FasEngineer fasEngineer) {
        return fasEngineerMapper.selectFasEngineerlist2(fasEngineer);

    }
}
